﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;

namespace App.Views.CheckoutService
{
    public partial class PrintDeadFeeList : System.Web.Mvc.ViewPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Views/CheckoutService/rptFeePrint.rdlc");
                ReportDataSource datasource = new ReportDataSource();
                datasource.Name = "dsFeeList";                
                string deadNo = Request.QueryString["DeadNO"];
                datasource.Value = App.Models.ReportClass.GetAllServiceDetail(deadNo);                
                ReportViewer1.LocalReport.DataSources.Add(datasource);
            } 
        }
    }
}